package com.jd.learn.event.eventbus.starter;

import com.google.common.eventbus.Subscribe;

/**
 * 这里采用峰哥的写法，Holder没用spring的bean，所以得用Starter手动注册
 * @author shenkaiwen5
 * @version 1.0
 * @date 2021/1/8
 */
public class MyInfoHolder {
    @Subscribe
    public void infoChange(MyTestInfoChangeEvent event) {
        //TODO do something
        System.out.println("My Info Change: " + event.getMessage());
    }
}
